/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
 * Copyright (c) 2019 HUST Dian Group
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation;
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Original Author: Pengyu Liu <eicliupengyu@gmail.com>
 */
#pragma once
#include <vector>
#include <limits>
#include "ns3/object.h"
#include "robo-geometry.h"
namespace ns3 {
#define MAX_WEAPON_ID 2
#define MAX_ROBO_TYPE 6
#define MAX_LEVEL 3
#define MAX_PERFORMANCE_LEVEL 4
#define MAX_BOUNDARY_POINTS 8
const float M_FLOAT_MAX = std::numeric_limits<float> ().max () / 10.f;
const int M_INT_MAX = std::numeric_limits<int> ().max () / 10;

enum RoboType {
  RoboTypeHero,
  RoboTypeInfantry,
  RoboTypeSentinel,
  RoboTypeEngineer,
  RoboTypeUVA,
  RoboTypeTower,
};
/*
low --------------------------------------------------> high
                1         2 3       4     5 6 7   8         9          10         11         12       13
                Building            Ammo          Hero      Infantry   Sentinel   Engineer   UVA      Tower
Self Mask Off   0         1 2       3     4 5 6   7         8          9          10         11       12
*/
enum eSelfMask {
  SelfMaskBuilding = 1 << 0,
  SelfMaskAmmo = 1 << 3,
  SelfMaskHero = 1 << 7,
  SelfMaskInfantry = 1 << 8,
  SelfMaskSentinel = 1 << 9,
  SelfMaskEngineer = 1 << 10,
  SelfMaskUVA = 1 << 11,
  SelfMaskTower = 1 << 12,
};
extern const std::vector<FVector> gBoundaryPoints[MAX_ROBO_TYPE];
extern const std::vector<FVector> gSupplyBoundary;
extern const uint32_t gRoboMask[MAX_ROBO_TYPE];
extern const uint32_t gRoboCollisionMask[MAX_ROBO_TYPE];
extern const uint32_t gAmmoCollisionMask;
extern const uint32_t gBuildingCollisionMask;
extern const int gRoboMaxLife[MAX_ROBO_TYPE][MAX_PERFORMANCE_LEVEL];
extern const int gRoboVirtualShield[MAX_ROBO_TYPE];
extern const float gRoboUpgradeExp[MAX_ROBO_TYPE][MAX_LEVEL];
extern const float gRoboExp[MAX_ROBO_TYPE][MAX_LEVEL];
extern const bool gRoboNotShootable[MAX_ROBO_TYPE][MAX_WEAPON_ID];
extern const float gRoboAutoIncExp[MAX_ROBO_TYPE];
extern const float gRoboMaxSpeed[MAX_ROBO_TYPE];
} // namespace ns3
